<template>
  <el-menu
    :default-active="activeIndex2"
    class="el-menu-demo itemPart"
    mode="horizontal"
    @select="handleSelect"
    background-color="#409EFF"
    text-color="#fff"
    active-text-color="#ffd04b"
    fixed
  >
    <el-menu-item index="5" class="headerPart">
      <img src="../../public/logo/飞机.svg" alt="" class="logoStyle" />&nbsp;
      <span class="logoFont">民航业可视化管理系统</span>
    </el-menu-item>
    <el-menu-item index="1"> <i class="el-icon-s-home"></i>首页 </el-menu-item>
    <el-menu-item index="2">
      <span class="el-icon-s-release"></span>我的工作台
    </el-menu-item>
  </el-menu>
</template>

<script>
// @ is an alias to /src

export default {
  name: "home",
  components: {},
  data() {
    return {
      activeIndex: "1",
      activeIndex2: "1",
    };
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    },
  },
};
</script>

<style scoped>
.headerPart {
  pointer-events: none;
}

.logoStyle {
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  line-height: 55px;
}

.itemPart {
  width: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.logoFont {
  margin: 0;
  font-size: 18px;
}

.el-col {
  border-radius: 4px;
}

.bg-purple-dark {
  background: #99a9bf;
}

.bg-purple {
  background: #d3dce6;
}

.bg-purple-light {
  background: #e5e9f2;
}

.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
</style>